package com.kadron.enumeration;

import org.jboss.seam.core.Interpolator;

public enum DiscountType {

	KADRONS(0),
	PERCENT(1);
	
	private int ordinal;

	private DiscountType(int ordinal) {
		this.ordinal = ordinal;
	}

	public int getOrdinal() {
		return ordinal;
	}
	
	public String getMessage() {
		return Interpolator.instance().interpolate("#{messages['"+name()+"_MSG']", new Object());
	}

}